#ifndef AW_LOCAL_VIEWPORT_NOOS2DPROJECTION
#define AW_LOCAL_VIEWPORT_NOOS2DPROJECTION

class AW_LVP_NOOS2DProjection : public AW_LocalViewport {

public:
	AW_LVP_NOOS2DProjection(int x,int y,int dx,int dy,NOOSDistanceMatrix *m,FeatureTerm **sel_ptr);
	~AW_LVP_NOOS2DProjection();

protected:

	void update_projection(void);
	void draw_projection(void);

	virtual void draw_internal(void);
	virtual bool MouseClick_internal(int selected);

	NOOSDistanceMatrix *m_matrix;
	List<FeatureTerm> m_summary_solution;
	List<int> m_summary_count;
	float *m_projection_x;
	float *m_projection_y;
	float *m_projection_r;
	float *m_projection_g;
	float *m_projection_b;

	float *m_projection_ellipse_x;
	float *m_projection_ellipse_y;
	float *m_projection_ellipse_r1;
	float *m_projection_ellipse_r2;
	float *m_projection_ellipse_a;
	float m_projection_ellipse_fp;
	float m_projection_ellipse_fe;

	FeatureTerm *m_selected_ft;
	FeatureTerm **m_selected_ptr;	// to communicate the selected feature term to the MAIN viewport

};

#endif

